<script>
	// import {loadFont} from '@/utils/index.js'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			
			const fontList = [
				{
					family: 'PINGFANG-BOLD',
					source: '/static/font/PINGFANG BOLD.TTF'
				},
				{
					family: 'PINGFANG-EXTRALIGHT',
					source: '/static/font/PINGFANG EXTRALIGHT.TTF'
				},
				{
					family: 'PINGFANG-HEAVY',
					source: '/static/font/PINGFANG HEAVY.TTF'
				},
				{
					family: 'PINGFANG-LIGHT',
					source: '/static/font/PINGFANG LIGHT.TTF'
				},
				{
					family: 'PINGFANG-MEDIUM',
					source: '/static/font/PINGFANG MEDIUM.TTF'
				},
				{
					family: 'PINGFANG-REGULAR',
					source: '/static/font/PINGFANG REGULAR.TTF'
				}
			]
			fontList.forEach(item=>{
				uni.loadFontFace({
					family:item.family,
					source:"url('"+item.source+"')",
					global: true
				})
			})
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "static/css/global.scss"
</style>
